package cn.kk.communication.service;


import cn.kk.communication.entity.Communication;

import java.sql.SQLException;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author kk
 * @since 2022-11-19
 */
public interface CommunicationService {

    /**
     * 通过名字查找用户
     * @param username
     * @return
     */
    Communication getByName(String username) throws SQLException;

    /**
     * 获取全部
     * @return
     * @throws SQLException
     */
    List<Communication> getAll() throws SQLException;

    /**
     * 注册
     * @param addCommunication
     * @return
     */
    int addUser(Communication addCommunication) throws SQLException;
}
